package Day2025_03_25;

import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        long a = in.nextLong();
        Long b = in.nextLong();
        Long x = Math.min(a, b);
        Long calc = 1l;
        for (Long i = 2l; i <= x; i++) {
            if (b % i == 0 && a % i == 0) calc = i;
        }
        System.out.println(a * b / calc);
    }
}
